<?php

class DeleteModel extends CI_Model {

    function __construct() {
        parent::__construct();
    }

    public function deleteData($table, $field, $val) {

        $data = array(
        	'Active' => 0
        );
        
        $this->db->where($field, $val);
        $this->db->update($table, $data);
    }
}